/**
 * Yolema.com Inc.
 * Copyright (c) 2011-2012 All Rights Reserved.
 */
package org.grayrabbit.pay.facade.convert;

import org.grayrabbit.pay.core.biz.vo.ChinaPayTradeVo;
import org.grayrabbit.pay.facade.bean.ChinaPayTrade;

/**
 * 转换银联交易
 * 
 * @author wy
 * @version $Id: ChinaPayTradeConvert.java, v 0.1 2012-11-6 下午4:26:53 wy Exp $
 */
public class ChinaPayTradeConvert {

    /**
     * 转换
     * 
     * @param chinaPayTrade
     * @param chinaPayTradeVo
     */
    public static void convert(final ChinaPayTrade chinaPayTrade,
                               final ChinaPayTradeVo chinaPayTradeVo) {
        
        chinaPayTradeVo.setMemo(chinaPayTrade.getMemo());
        chinaPayTradeVo.setUser(chinaPayTrade.getUser());
        chinaPayTradeVo.setMoney(chinaPayTrade.getMoney().getMoneyFen());
        chinaPayTradeVo.setName(chinaPayTrade.getName());
        chinaPayTradeVo.setOrderId(chinaPayTrade.getOrderId());
        chinaPayTradeVo.setSystemCode(chinaPayTrade.getSystemCode());

    }

}
